package com.barbeque.mall.service.user;

import com.barbeque.mall.mapper.PageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author why
 * @since 2022/07/16 14:32
 */
@Service
public class PageServiceImpl implements PageService {
    @Autowired
    PageMapper pageMapper;

    @Override
    public int selectUserNum() {
       int selectUserNum =  pageMapper.selectUserNum();
        return selectUserNum;
    }

    @Override
    public int selectOrdersNum() {
        int selectOrdersNum =  pageMapper.selectOrdersNum();
        return selectOrdersNum;
    }

    @Override
    public int selectProductNum() {
        int selectProductNum =  pageMapper.selectProductNum();
        return selectProductNum;
    }

    @Override
    public int selectGoodsNum() {
        int selectGoodsNum =  pageMapper.selectGoodsNum();
        return selectGoodsNum;
    }
}
